# -*- coding: utf-8 -*-

import sys

reload(sys)
sys.setdefaultencoding('utf8')

from Window import *

try:
    log(sys.argv)
    # if sys.argv[1] == 'clearHistory':
    #     clearHistory()
    # elif sys.argv[1] == 'clearFavor':
    #     clearFavor()
    # elif sys.argv[1] == 'openSetting':
    #     openWindow('mysettings')
    # print os.popen("ipconfig").read()
    openWindow('discover')
except:
    if __name__ == '__main__':
        openWindow('discover')
